﻿namespace Ngs
{
    using System;

    public static class DateTimeExtension
    {
        private const string MonthNameFormat = "MMMM";
        private const string ShortMonthNameFormat = "MMM";

        static DateTimeExtension()
        {
        }

        public static string ToMonthName(this DateTime dateTime)
        {
            return dateTime.ToString(MonthNameFormat);
        }

        public static string ToShortMonthName(this DateTime dateTime)
        {
            return dateTime.ToString(ShortMonthNameFormat);
        }
    }
}
